import Vue from 'vue';
import VueRouter from 'vue-router';
import Index from '../views/index/Index.vue';
Vue.use(VueRouter);

const routes = [
	{
		path: '/',
		name: 'index',
		component: Index
	},
	{
		path: '/article/:id',
		name: 'article',
		component: () => import('../views/article/Index.vue')
	},
	{
		path: '/merge',
		name: 'merge',
		component: () => import('../views/merge/Index.vue')
	},
	{
		path: '/category',
		name: 'merge',
		component: () => import('../views/category/Index.vue')
	}
];

const router = new VueRouter({
	mode: 'history',
	routes
});

export default router;
